<?php
//model模型层做的是业务模型
require '../dao/dixingsetdao.php';

class dixingsetmodel{
	
	
	private $dao;

	public function crush($crushval,$crushid,$img){
		//echo $crushid;
		$dao=new dixingsetdao();
		$rs=$dao->Update($crushval,$crushid,$img);
		if(empty($rs)){
			//没有结果，说明没有该用户
			return 0;
		}
		else{
			return $rs;
		}
	
	}
	
	
}
?>